<style>
    div
    {
    z-index:-1;
    }
    img
    {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index:inherit;
    }
    h1
    {
    z-index: 1;
    position: absolute;
    top: 220px;
    }
</style>
<div>
<img src="OpenGenus.jpg" alt="OpenGenus Logo">
</div>
<h1> Inherit Keyword Example for CSS Z-index property </h1>